Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bluetooth: RFCOMM: Move BT_RFCOMM_BUF_SIZE to rfcomm.h #83787

Conversation

lylezhu2012
Copy link
Contributor

  • Bluetooth: RFCOMM: Add a argument server to bt_rfcomm_server.accept

In current implementation, the accept cannot be identified if the same one accept callback is passed by the upper layer.

Similar with accept of bt_l2cap_server.accept, add a parameter server to the bt_rfcomm_server.accept callback.

@kartben
Copy link
Collaborator

kartben commented Jan 16, 2025

@lylezhu2012 this needs a rebase for some reason since it doesn't want to merge despite merge button being green :)

The buffer `BT_RFCOMM_BUF_SIZE` is used to define the TX buffer size of
TX pool.

In current implementation, the TX buffer size of RFCOMM cannot be
calculated due to the macro `BT_RFCOMM_BUF_SIZE` is defined in internal
header file `rfcomm_internal.h`.

Move the macro `BT_RFCOMM_BUF_SIZE` form internal header file
`rfcomm_internal.h` to interface `rfcomm.h`.

Signed-off-by: Lyle Zhu <[email protected]>
@lylezhu2012 lylezhu2012 force-pushed the move_BT_RFCOMM_BUF_SIZE_to_rfcomm_h branch from 2786490 to 4922b7b Compare January 16, 2025 05:22
@lylezhu2012
Copy link
Contributor Author

@lylezhu2012 this needs a rebase for some reason since it doesn't want to merge despite merge button being green :)

Updated

@kartben kartben merged commit c409099 into zephyrproject-rtos:main Jan 17, 2025
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants